package com.ssy.lingxi.message.api.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.message.api.vo.request.SystemMessageCustomRequest;
import com.ssy.lingxi.message.api.vo.request.SystemMessageRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @menu 内部接口-会员消息
 * @author yzc
 * @version 2.0.0
 * @date 2020/10/27
 */
@FeignClient(name = "message-service")
public interface SystemMessageControllerFeign {


    /**
     * 发送系统消息
     * @param request 接口参数
     * @return 返回结果
     */
    @PostMapping("/message/systemMessage/feign/send")
    Wrapper<Void> sendSystemMessage(@RequestBody SystemMessageRequest request);

    /**
     * 发送系统消息(批量)
     * @param request 接口参数
     * @return 返回结果
     */
    @PostMapping("/message/systemMessage/feign/batchSend")
    Wrapper<Void> batchSendSystemMessage(@RequestBody List<SystemMessageRequest> request);

    /**
     * 发送自定义消息
     * @param request 接口参数
     * @return 返回结果
     */
    @PostMapping("/message/systemMessage/feign/custom")
    Wrapper<Void> sendCustomMessage(@RequestBody SystemMessageCustomRequest request);

}
